package com.zch.house.service;

import java.util.List;

import com.zch.house.entity.House;

public interface HouseService {
	/**
	 * 根据条件模糊查询相应的房屋信息
	 * @param sql
	 * @param params
	 * @return
	 */
	public List<House> getAllHouseByPage(String h_area,String h_estate,
			String h_acreage,double lowPrice,double highPrice,
			int h_status,int pageIndex);
	/**
	 * 获得查询的总页码
	 * @param sql
	 * @param params
	 * @return
	 */
	public int getTotalCount(String h_area,String h_estate,
			String h_acreage,double lowPrice,double highPrice,
			int h_status);
	/**
	 * 获得查询的数据总数
	 * @param h_area
	 * @param h_estate
	 * @param h_acreage
	 * @param lowPrice
	 * @param highPrice
	 * @param h_status
	 * @return
	 */
	public int getTotalCount2(String h_area,String h_estate,
			String h_acreage,double lowPrice,double highPrice,
			int h_status);
	/**
	 * 根据房屋的唯一标识获得房屋信息
	 * @param h_id
	 * @return
	 */
	public House getHouseById(int h_id);
	/**
	 * 添加房屋信息
	 * @param house
	 * @return
	 */
	public boolean addHouse(House house);
	/**
	 * 根据房屋的唯一标识删除房屋信息
	 * @param h_id
	 * @return
	 */
	public boolean deleteHouse(int h_id);
	/**
	 * 修改房屋信息
	 * @param house
	 * @return
	 */
	public boolean updateHouse(House house);
	/**
	 * 删除所有数据
	 * @param idStrs
	 * @param splitOper
	 * @return
	 */
	 
	public boolean deleteAllhouse(String idStrs,String splitOper);
}
